package com.nycreativity.elecreativity.service;

import com.baomidou.mybatisplus.extension.service.IService
import com.nycreativity.elecreativity.entity.param.brand.BrandAddParam
import com.nycreativity.elecreativity.entity.param.brand.BrandUpdateParam
import com.nycreativity.elecreativity.entity.po.Brand
import com.nycreativity.elecreativity.entity.vo.brand.BrandVO

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-11
 */
interface BrandService : IService<Brand>{

    /**
     * 根据id获取
     */
    fun queryById(id: Long): BrandVO

    /**
     * 新增品牌
     */
    fun add(brandAddParam: BrandAddParam): Boolean

    /**
     * 根据id修改
     */
    fun updateById(brandUpdateParam: BrandUpdateParam): Boolean

    /**
     * 查询全部
     */
    fun queryAll(): List<BrandVO>

    /**
     * 根据id删除
     */
    fun deleteById(id: Long): Boolean

}
